package com.someclip.component.controlls 
{
	import flash.display.DisplayObject;
	import flash.display.SimpleButton;
	
	/**
	 * ...
	 * @author Argus
	 */
	public class SimpleButtonExtend extends SimpleButton 
	{
		private var _w:Number;
		private var _h:Number;
		private var _sX:Number;
		private var _sY:Number;
		public function SimpleButtonExtend(upState:DisplayObject = null, overState:DisplayObject = null, downState:DisplayObject = null, hitTestState:DisplayObject = null) 
		{
			super(upState,overState,downState,hitTestState);
			_w = super.upState.width;
			_h = super.upState.height;
			_sX = super.upState.scaleX;
			_sY = super.upState.scaleY;
		}

		override public function get width():Number
		{
			return _w;
		}
		
		override public function set width(value:Number):void
		{
			_w = value;
			super.upState.width = value;
			super.downState.width = value;
			super.overState.width = value;
			super.hitTestState.width = value;
		}
		
		override public function get height():Number
		{
			return _h;
		}
		
		override public function set height(value:Number):void
		{
			_h = value;
			super.upState.height = value;
			super.downState.height = value;
			super.overState.height = value;
			super.hitTestState.height = value;
		}
		
		override public function get scaleX():Number
		{
			return _sX;
		}
		
		override public function set scaleX(value:Number):void
		{
			_sX = value;
			super.upState.scaleX = value;
			super.downState.scaleX = value;
			super.overState.scaleX = value;
			super.hitTestState.scaleX = value;
		}
		
		override public function get scaleY():Number
		{
			return _sY;
		}
		
		override public function set scaleY(value:Number):void
		{
			_sY = value;
			super.upState.scaleY = value;
			super.downState.scaleY = value;
			super.overState.scaleY = value;
			super.hitTestState.scaleY = value;
		}
	}

}